import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/summary',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/summary/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/summary',
    method: 'put',
    data
  })
}

export function summaryNum() {
  return request({
    url: 'api/summary/summaryNum'
  })
}

export function everyMonthNum() {
  return request({
    url: 'api/summary/sumProperty',
    method: 'get'
  })
}

export function everyMonthNum1(data) {
  return request({
    url: 'api/summary/sumProperty/' + data,
    method: 'get'

  })
}
export default { add, edit, del, summaryNum, everyMonthNum, everyMonthNum1 }
